package com.hig.ledger.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 安全阀台账对象 ledger_safety_valve
 * 
 * @author scp
 * @date 2024-09-20
 */
public class LedgerSafetyValve extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 编号 */
    @Excel(name = "编号")
    private String code;

    /** 安装位置 */
    @Excel(name = "安装位置")
    private String installationLocation;

    /** 公称通径(mm) */
    @Excel(name = "公称通径(mm)")
    private BigDecimal nominalDiameter;

    /** 整定压力(MPa) */
    @Excel(name = "整定压力(MPa)")
    private BigDecimal setPressure;

    /** 类型 */
    @Excel(name = "类型", dictType = "valve_type")
    private String valveType;

    /** 通过介质 */
    @Excel(name = "通过介质")
    private String throughMedium;

    /** 检测机构 */
    @Excel(name = "检测机构")
    private String testingAgency;

    /** 检定日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "检定日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date verificationDate;

    /** 检定有效期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "检定有效期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date verificationExpirationDate;

    /** 备用 */
    private String remarkSpare;

    /** 备用1 */
    private String remarkSpare1;

    /** 备用2 */
    private String remarkSpare2;

    /** 部门ID */
//    @Excel(name = "部门ID")
    private Long deptId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCode(String code) 
    {
        this.code = code;
    }

    public String getCode() 
    {
        return code;
    }
    public void setInstallationLocation(String installationLocation) 
    {
        this.installationLocation = installationLocation;
    }

    public String getInstallationLocation() 
    {
        return installationLocation;
    }
    public void setNominalDiameter(BigDecimal nominalDiameter) 
    {
        this.nominalDiameter = nominalDiameter;
    }

    public BigDecimal getNominalDiameter() 
    {
        return nominalDiameter;
    }
    public void setSetPressure(BigDecimal setPressure) 
    {
        this.setPressure = setPressure;
    }

    public BigDecimal getSetPressure() 
    {
        return setPressure;
    }
    public void setValveType(String valveType) 
    {
        this.valveType = valveType;
    }

    public String getValveType() 
    {
        return valveType;
    }
    public void setThroughMedium(String throughMedium) 
    {
        this.throughMedium = throughMedium;
    }

    public String getThroughMedium() 
    {
        return throughMedium;
    }
    public void setTestingAgency(String testingAgency) 
    {
        this.testingAgency = testingAgency;
    }

    public String getTestingAgency() 
    {
        return testingAgency;
    }
    public void setVerificationDate(Date verificationDate) 
    {
        this.verificationDate = verificationDate;
    }

    public Date getVerificationDate() 
    {
        return verificationDate;
    }
    public void setVerificationExpirationDate(Date verificationExpirationDate) 
    {
        this.verificationExpirationDate = verificationExpirationDate;
    }

    public Date getVerificationExpirationDate() 
    {
        return verificationExpirationDate;
    }
    public void setRemarkSpare(String remarkSpare) 
    {
        this.remarkSpare = remarkSpare;
    }

    public String getRemarkSpare() 
    {
        return remarkSpare;
    }
    public void setRemarkSpare1(String remarkSpare1) 
    {
        this.remarkSpare1 = remarkSpare1;
    }

    public String getRemarkSpare1() 
    {
        return remarkSpare1;
    }
    public void setRemarkSpare2(String remarkSpare2) 
    {
        this.remarkSpare2 = remarkSpare2;
    }

    public String getRemarkSpare2() 
    {
        return remarkSpare2;
    }

    public Long getDeptId() {
        return deptId;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("code", getCode())
            .append("installationLocation", getInstallationLocation())
            .append("nominalDiameter", getNominalDiameter())
            .append("setPressure", getSetPressure())
            .append("valveType", getValveType())
            .append("throughMedium", getThroughMedium())
            .append("testingAgency", getTestingAgency())
            .append("verificationDate", getVerificationDate())
            .append("verificationExpirationDate", getVerificationExpirationDate())
            .append("remark", getRemark())
            .append("remarkSpare", getRemarkSpare())
            .append("remarkSpare1", getRemarkSpare1())
            .append("remarkSpare2", getRemarkSpare2())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("deptId", getDeptId())
            .toString();
    }
}
